package com.wu.apiorderaddfeign.controller;


import com.wu.apiorderaddfeign.service.impl.OrederServiceImpl;
import com.wu.beans.Oreders;
import com.wu.vo.Reultvo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("/order")
public class OrderAddController {

      @Autowired
       private OrederServiceImpl orederService;

      @RequestMapping("/save")
      public Reultvo addOrder(Oreders oreders){
          return orederService.save(oreders);
      }
}
